﻿using Directory = Composite.Directory;
using File = Composite.File;

Console.WriteLine("Making root entries...");

var rootDir = new Directory("root");
var binDir = new Directory("bin");
var tmpDir = new Directory("tmp");
var usrDir = new Directory("usr");

rootDir.Add(binDir);
rootDir.Add(tmpDir);
rootDir.Add(usrDir);

binDir.Add(new File("vi", 10000));
binDir.Add(new File("latex", 20000));

rootDir.PrintList();

Console.WriteLine();
Console.WriteLine("Making user entries...");
var yuki = new Directory("yuki");
var hannako = new Directory("hanako");
var tomura = new Directory("tomura");
usrDir.Add(yuki);
usrDir.Add(hannako);
usrDir.Add(tomura);

yuki.Add(new File("diary.html", 100));
yuki.Add(new File("Composite.java", 200));
hannako.Add(new File("memp.tex", 300));
tomura.Add(new File("game.doc", 400));
tomura.Add(new File("junk.mail", 500));
rootDir.PrintList();